package com.web.base.auth.model;

import com.blue.jdbc.annotation.GeneratorType;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;

/**
 * 角色－按钮实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月15日
 */
@Table(name = "auth_role_menu_button")
public class RoleMenuButton
{
	@Id(generator = GeneratorType.ASSIGNED)
	private Integer roleId; // 角色编号
	@Id(generator = GeneratorType.ASSIGNED)
	private Integer buttonId; // 按钮编号

	@Transient
	private String code;

	public RoleMenuButton()
	{
	}

	public RoleMenuButton(Integer roleId, Integer buttonId)
	{
		this.roleId = roleId;
		this.buttonId = buttonId;
	}

	public Integer getRoleId()
	{
		return this.roleId;
	}

	public void setRoleId(Integer roleId)
	{
		this.roleId = roleId;
	}

	public Integer getButtonId()
	{
		return buttonId;
	}

	public void setButtonId(Integer buttonId)
	{
		this.buttonId = buttonId;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}
}
